package com.atguigu.orderservice.client;

import com.atguigu.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;

@Component
@FeignClient("service-ucenter")
public interface UcenterClient {
    @GetMapping("/eduucenter/ucenter/getUserInfo")
    R getUserInfo(@RequestParam("request") HttpServletRequest request);
}
